package com.ljw.entity;

import lombok.Data;

import java.util.List;

/**
 * @Description 用户表
 * @Author LJW
 * @Date 2023/3/29 16:27
 */
@Data
public class SysUser implements java.io.Serializable {

    private List<Address> addressList;      //用户地址列表
    private SysRole sysRole;        //系统角色实体类
    private Integer id;     //ID
    private String account;     //账号
    private String realName;        //真实姓名
    private String password;        //用户密码
    private Integer sex;        //性别
    private String birthday;        //出生日期
    private String phone;       //电话
    private String address;     //地址
    private Integer roleId;     //用户角色
    private Integer createdUserId;      //创建者
    private String createdTime;     //创建时间
    private Integer updatedUserId;      //更新者
    private String updatedTime;     //更新时间

    public SysUser() {
    }

    //修改
    public SysUser(String account, String realName, String password, Integer sex, String phone, String address, String birthday, Integer roleId, Integer updatedUserId, String updatedTime, Integer id) {
        this.id = id;
        this.account = account;
        this.realName = realName;
        this.password = password;
        this.sex = sex;
        this.birthday = birthday;
        this.phone = phone;
        this.address = address;
        this.roleId = roleId;
        this.updatedUserId = updatedUserId;
        this.updatedTime = updatedTime;
    }

    public SysUser(String account, String realName, String password, Integer sex, String birthday, String phone, String address, Integer roleId, Integer createdUserId, String createdTime) {
        this.account = account;
        this.realName = realName;
        this.password = password;
        this.sex = sex;
        this.birthday = birthday;
        this.phone = phone;
        this.address = address;
        this.roleId = roleId;
        this.createdUserId = createdUserId;
        this.createdTime = createdTime;
    }
}
